<!--  -->
<template>
  <div style="height:500px;">
      <!-- <tsEmpty></tsEmpty> -->
       <tsDragTree
        ref="comTree"
        :isTreeExpand="false"
        :treeData="treeObj.data"
        :source="treeObj"
        @onSelectRow="onTreeSelectRow"
        :loading="treeLoad"
      ></tsDragTree>
  </div>
</template>

<script>
export default {
  data () {
    return {
          treeLoad: false,
      treeObj: {
        // checkbox: true,
        dataType: 'local',
        data: [],
        textName: 'name',
        childName: 'children',
        line: true,
        draggable: false,
        isHighlightHover: false,
        isHighlightCurrent: true,
        showOverFlow: true,
        iconColorParam: { param: 'status', value: 0, color: '#a6a6a6' }
      }
        // image:require('../../../packages/tsEmpty/img/empty.png'),
    };
  },

  components: {},

  computed: {},

  watch:{},

  mounted() {

    this.treeObj.data = [
  {
    "id": "73e740a45e8a4bfa8640c58aa26f53cf",
    "name": "湖南省人民医院 (7)",
    "nickName": "湖南省人民医院",
    "code": "SYR",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": 7,
    "children": [
      {
        "id": "623d0fcb6a493b00508fbf52",
        "name": "马王堆院区 (1)",
        "nickName": "马王堆院区",
        "code": "MWD",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": 1,
        "children": [
          {
            "id": "62466e54a31d82455b1e8222",
            "name": "内科（马）",
            "nickName": null,
            "code": "innnder1",
            "belongsOrgName": "马王堆院区",
            "belongsOrgId": "623d0fcb6a493b00508fbf52",
            "belongsOrgCode": "MWD",
            "type": "2",
            "count": null,
            "children": null
          }
        ]
      },
      {
        "id": "623d0fcb6a493b00508fbf53",
        "name": "天心阁院区 (1)",
        "nickName": "天心阁院区",
        "code": "TXG",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": 1,
        "children": [
          {
            "id": "62466eb6a31d82455b1e8223",
            "name": "内科",
            "nickName": null,
            "code": "nnnnn",
            "belongsOrgName": "天心阁院区",
            "belongsOrgId": "623d0fcb6a493b00508fbf53",
            "belongsOrgCode": "TXG",
            "type": "2",
            "count": null,
            "children": null
          }
        ]
      },
      {
        "id": "62466e23a31d82455b1e8221",
        "name": "岳麓山院区 (1)",
        "nickName": null,
        "code": "YLS",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": 1,
        "children": [
          {
            "id": "62466ef5a31d82455b1e8224",
            "name": "外科（岳）",
            "nickName": null,
            "code": "886876867",
            "belongsOrgName": "岳麓山院区",
            "belongsOrgId": "62466e23a31d82455b1e8221",
            "belongsOrgCode": "YLS",
            "type": "2",
            "count": null,
            "children": null
          }
        ]
      },
      {
        "id": "6232d336a31d8211d69d173c",
        "name": "内科 (3)",
        "nickName": null,
        "code": "NK01",
        "belongsOrgName": "湖南省人民医院",
        "belongsOrgId": "73e740a45e8a4bfa8640c58aa26f53cf",
        "belongsOrgCode": "SYR",
        "type": "2",
        "count": 3,
        "children": [
          {
            "id": "6232d558a31d8211d69d173e",
            "name": "心血管内一科",
            "nickName": null,
            "code": "XXGNYK01",
            "belongsOrgName": "湖南省人民医院",
            "belongsOrgId": "73e740a45e8a4bfa8640c58aa26f53cf",
            "belongsOrgCode": "SYR",
            "type": "2",
            "count": null,
            "children": null
          },
          {
            "id": "6232d5bca31d8211d69d173f",
            "name": "心血管内二科",
            "nickName": null,
            "code": "XXGNYK02",
            "belongsOrgName": "湖南省人民医院",
            "belongsOrgId": "73e740a45e8a4bfa8640c58aa26f53cf",
            "belongsOrgCode": "SYR",
            "type": "2",
            "count": null,
            "children": null
          },
          {
            "id": "623d1e726a493b091860a56e",
            "name": "心血管内三科",
            "nickName": "心血内三科",
            "code": "XXGNYK03",
            "belongsOrgName": "湖南省人民医院",
            "belongsOrgId": "73e740a45e8a4bfa8640c58aa26f53cf",
            "belongsOrgCode": "SYR",
            "type": "2",
            "count": null,
            "children": null
          }
        ]
      },
      {
        "id": "6232d351a31d8211d69d173d",
        "name": "外科",
        "nickName": null,
        "code": "WK01",
        "belongsOrgName": "湖南省人民医院",
        "belongsOrgId": "73e740a45e8a4bfa8640c58aa26f53cf",
        "belongsOrgCode": "SYR",
        "type": "2",
        "count": null,
        "children": null
      }
    ]
  },
  {
    "id": "be79c236107c4efab30ef286d0adce17",
    "name": "南华大学附属第一医院 (4)",
    "nickName": "南华附一",
    "code": "NHFY",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": 4,
    "children": [
      {
        "id": "0d50e39323d446c8918eb10401ba0837",
        "name": "南华附一本院 (4)",
        "nickName": "本院",
        "code": "NHFY01",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": 4,
        "children": [
          {
            "id": "A079D113A4194E99829A71B29081DA5B",
            "name": "内科 (3)",
            "nickName": null,
            "code": "NEIKE",
            "belongsOrgName": "南华附一本院",
            "belongsOrgId": "0d50e39323d446c8918eb10401ba0837",
            "belongsOrgCode": "NHFY01",
            "type": "2",
            "count": 3,
            "children": [
              {
                "id": "5E4EC44A948B42CF89C9079BE90EE8FE",
                "name": "神经内科",
                "nickName": null,
                "code": "SJNK",
                "belongsOrgName": "南华附一本院",
                "belongsOrgId": "0d50e39323d446c8918eb10401ba0837",
                "belongsOrgCode": "NHFY01",
                "type": "2",
                "count": null,
                "children": null
              },
              {
                "id": "6B0F9DAD715442C0BF7C6597DC764806",
                "name": "呼吸内科 (2)",
                "nickName": null,
                "code": "HXNK",
                "belongsOrgName": "南华附一本院",
                "belongsOrgId": "0d50e39323d446c8918eb10401ba0837",
                "belongsOrgCode": "NHFY01",
                "type": "2",
                "count": 2,
                "children": [
                  {
                    "id": "976FA737777F4D40B682082996B6DF25",
                    "name": "心血管内科",
                    "nickName": null,
                    "code": "XXGNK",
                    "belongsOrgName": "南华附一本院",
                    "belongsOrgId": "0d50e39323d446c8918eb10401ba0837",
                    "belongsOrgCode": "NHFY01",
                    "type": "2",
                    "count": null,
                    "children": null
                  },
                  {
                    "id": "623d1e726a493b091860a56f",
                    "name": "心内二科02",
                    "nickName": "心内二科",
                    "code": "XNYK012",
                    "belongsOrgName": "南华附一本院",
                    "belongsOrgId": "0d50e39323d446c8918eb10401ba0837",
                    "belongsOrgCode": "NHFY01",
                    "type": "2",
                    "count": null,
                    "children": null
                  }
                ]
              }
            ]
          },
          {
            "id": "E419581C83D44E2486F599111A22322D",
            "name": "外科",
            "nickName": null,
            "code": "WAIKE",
            "belongsOrgName": "南华附一本院",
            "belongsOrgId": "0d50e39323d446c8918eb10401ba0837",
            "belongsOrgCode": "NHFY01",
            "type": "2",
            "count": null,
            "children": null
          }
        ]
      },
      {
        "id": "308195558769405952",
        "name": "南华附一分院",
        "nickName": "分院",
        "code": "NHFY02",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": null,
        "children": null
      }
    ]
  },
  {
    "id": "6237e0e4a31d8225a9ba00a9",
    "name": "益阳医共体",
    "nickName": null,
    "code": "ceshiqq",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": null,
    "children": null
  },
  {
    "id": "464707374202142720",
    "name": "湖南中医药大学附属第一医院",
    "nickName": "中医附一",
    "code": "ZYFY",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": null,
    "children": [
      {
        "id": "464707374206337024",
        "name": "中医附一本院",
        "nickName": "本院",
        "code": "ZYFY01",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": null,
        "children": null
      }
    ]
  },
  {
    "id": "462165619549794304",
    "name": "湖南省妇幼保健院",
    "nickName": null,
    "code": "HNSFY",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": null,
    "children": [
      {
        "id": "46327174434891016192",
        "name": "本院",
        "nickName": "省妇幼本院",
        "code": "HNSFY01",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": null,
        "children": null
      }
    ]
  },
  {
    "id": "47767513581266792320",
    "name": "北海妇幼保健院",
    "nickName": "北海妇幼保健院",
    "code": "BHFY",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": null,
    "children": [
      {
        "id": "47767513581666986624",
        "name": "北海妇幼保健院本院",
        "nickName": "本院",
        "code": "BHFY01",
        "belongsOrgName": null,
        "belongsOrgId": null,
        "belongsOrgCode": null,
        "type": "1",
        "count": null,
        "children": null
      }
    ]
  },
  {
    "id": "73e740a45e8a4bfa8640c58aa26f53cd",
    "name": "湖南创星科技股份有限公司",
    "nickName": "湖南创星科技股份有限公司",
    "code": "TRASEN",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": null,
    "children": null
  },
  {
    "id": "6237e110a31d8225a9ba00aa",
    "name": "益阳三 (1)",
    "nickName": null,
    "code": "测试QQ",
    "belongsOrgName": null,
    "belongsOrgId": null,
    "belongsOrgCode": null,
    "type": "1",
    "count": 1,
    "children": [
      {
        "id": "4240DD58D1C94ED1BCF950CAF2D7063C",
        "name": "测试一级机构",
        "nickName": null,
        "code": "QQ001",
        "belongsOrgName": "益阳三",
        "belongsOrgId": "6237e110a31d8225a9ba00aa",
        "belongsOrgCode": "测试QQ",
        "type": "2",
        "count": null,
        "children": null
      }
    ]
  }
]
  },

  created() {}, 

  methods: {
    onTreeSelectRow(){
      
    }
  }
}

</script>
<style lang='scss' scoped>
</style>